/*Knights of Cygnus NPC - Neinheart/Nineheart
  Warps to Ereve
  Made by DevFatal ^^ DejaVu Says: DevFatal FAILS if a script this size needs cleaning O_o
  Cleaned up by buya 
*/

void npc(Player @player, NPC @npc) {
	int state = npc.getState();
	if(state == 0){
		npc.addText("Becoming a Knight of Cygnus requires talent, faith, courage, and will power... and it looks like you are more than qualified to become a Knight of Cygnus. What do you think? If you wish to become one right this minute, I'll take you straight to Ereve. Would you like to head over to Ereve right now?");
		npc.sendYesNo();
	}
	else if(state == 1){
		if(npc.getSelected() == YES){
			player.changeMap(130000000);
			npc.end();
		} else {
			npc.end();
		}
	} else {
		npc.addText("Come see me when you are ready.");
		npc.sendOK();
		npc.end();
	}
}